import redis.clients.jedis.Jedis;

public class TestJedis {
    public static void main(String[] args) {
        /*jedis的方法 基本和redis原生命令一样
        * 要联系原生redis命令*/
        System.out.println(11);
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        jedis.set("key2","鲁大师");
        System.out.println(jedis.get("key3"));

        System.out.println(jedis.ping());
    }
}
